import request from '@/utils/request';

export function getReceivableSummary(params) {
  return request({
    url: '/md/receivable/report/summary',
    method: 'get',
    params
  });
}

export function getReceivableDataStream(params) {
  return request({
    url: '/md/receivable/report/dataStream',
    method: 'get',
    params
  });
}

export function getSalesDetailByCustomerCode(params) {
  return request({
    url: '/md/receivable/report/salesDetail',
    method: 'get',
    params
  });
}

export function getReturnDetailByCustomerCode(params) {
  return request({
    url: '/md/receivable/report/returnDetail',
    method: 'get',
    params
  });
}

export function getConfirmOrderByCustomerCode(params) {
  return request({
    url: '/md/receivable/report/confirmOrder',
    method: 'get',
    params
  });
}

export function getRefundOrderByCustomerCode(params) {
  return request({
    url: '/md/receivable/report/refundOrder',
    method: 'get',
    params
  });
}
